Added a count of the number of users of this block device, and refuse to close
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Thu, 24 Nov 2005 19:53:09 +0000 (19:53 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Thu, 24 Nov 2005 19:53:09 +0000 (19:53 +0000)
commitc039c43debb08c4d46051a4ee4f88b461a3d47a2
tree8f2ce00d6b0488239a94ee214b0e3ae92043e792
parente5914d7e8979b55c2b6311dea95a1ca2e3479694
Added a count of the number of users of this block device, and refuse to close
down the frontend until that number becomes 0.  There are no reasonable
semantics for hot-unplugging a block device beneath a mounted filesystem, and
this solution ensures that the guest is not crashed nor the filesystem corruptedby the actions of the administrator.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
linux-2.6-xen-sparse/drivers/xen/blkfront/block.h